package com.ganinfo.common.token;

public class TokenFactory {
	public static IToken getToken(String type,Object o){
		if("session".equals(type)){
			System.out.println("进入工厂类之“session”!");
			return new SessionToken(o);
		}else if("redis".equals(type)){
			//redis
			return new RidesToken();
		}else {
			//无对应类型
			return null;
		}
		
	}
}
